﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;

namespace Infrastructure.WpfClient.Views.AzureMgm
{
    /// <summary>
    /// Interaction logic for AzureMgmView.xaml
    /// </summary>
    public partial class AzureMgmView : UserControl, IAzureMgmView
    {
        private AzureMgmPresenter _Presenter;
        [Dependency]
        public AzureMgmPresenter Presenter
        {
            get { 
                return _Presenter; }
            set { 
                _Presenter = value;
                this._Presenter.View = this;
                this.DataContext = value;
            
            }
        }

        
        public AzureMgmView()
        {
            InitializeComponent();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            this.Presenter.OnViewReady();  
        }
    }
}
